import { createRouter, createWebHistory } from 'vue-router'
import routes from '~pages'

routes.map(item => {
    if(item.path === '/main/home'){
        item.path='/'
    }
})
const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router

